
package info.mikrotubula.managers;

import info.mikrotubula.db.Profiles;
import info.mikrotubula.db.Rights;
import java.util.List;
import javax.ejb.Local;
import javax.persistence.NoResultException;
import javax.persistence.NonUniqueResultException;


/**
 * This is the business interface for ProfilesManager enterprise bean.
 */
@Local
public interface ProfilesManagerLocal {
    List<Profiles> list();

    Profiles create(Profiles profile);

    Boolean checkIfExists(Profiles profile);

    Profiles findById(Profiles profile) throws NoResultException, NonUniqueResultException;

    public void saveProfileRights(Profiles profile, List<Rights> rights);
    
}
